package operator;

import java.util.Arrays;

public class SortDemo {
    public static void main(String[] args) {

        int[] arr = {23, 14, 56, 9, 10, 7, 33, 47, 21, 20, 18, 17, 55, 63};

        Arrays.sort(arr);

        for (int i = 0; i < arr.length; i++) {
            System.out.print(arr[i] + " ");
        }

        System.out.println("\n最大元素是：" + arr[arr.length - 1]);
        System.out.println("最小元素是：" + arr[0]);
    }
}
